#include "splicingStrings.h"
#include <Arduino.h>

// String InputString::inputBuffer = "";
// bool InputString::readyToReturn = false;
// char buffer[20]; // 调整为2以容纳字符和字符串结束符'\0'
String buffer = "";
int num = 0;
String getString(char c)
{
  if (num >= 5)
  {
    num = 0;
    buffer = "";
  }
  buffer += String(c);
  num++;
  if (num >= 5)
  {
    return String(buffer);
  }
  return String(num);
  // 使用String构造函数从C字符串创建String对象
}
